#pragma once



#include <HAP_perf.h>


class TicToc {
public:
    TicToc(){
        tic();
    }
    void tic() {
        ts = HAP_perf_get_time_us();
    }
    uint64 toc() {
        return HAP_perf_get_time_us() - ts;
    }
    uint64 ts;
};









